package com.lyjilu.model.entity;

import java.io.Serializable;
import javax.persistence.*;
import java.math.BigDecimal;
import java.util.Date;


/**
 * The persistent class for the pop_user_log database table.
 * 
 */
@Entity
@Table(name="pop_user_log")
public class PopUserLog implements Serializable {
	private static final long serialVersionUID = 1L;
	private long id;
	private String content;
	private Date creTime;
	private BigDecimal type;
	private PopUser popUser;

    public PopUserLog() {
    }


	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	@Column(unique=true, nullable=false, precision=10)
	public long getId() {
		return this.id;
	}

	public void setId(long id) {
		this.id = id;
	}


	@Column(length=512)
	public String getContent() {
		return this.content;
	}

	public void setContent(String content) {
		this.content = content;
	}


    @Temporal( TemporalType.TIMESTAMP)
	@Column(name="cre_time", nullable=false)
	public Date getCreTime() {
		return this.creTime;
	}

	public void setCreTime(Date creTime) {
		this.creTime = creTime;
	}


	@Column(nullable=false, precision=10)
	public BigDecimal getType() {
		return this.type;
	}

	public void setType(BigDecimal type) {
		this.type = type;
	}


	//bi-directional many-to-one association to PopUser
    @ManyToOne
	@JoinColumn(name="operator", nullable=false)
	public PopUser getPopUser() {
		return this.popUser;
	}

	public void setPopUser(PopUser popUser) {
		this.popUser = popUser;
	}
	
}